#ifndef INJECTPROCESS_H
#define INJECTPROCESS_H

#include <QWidget>
#include "ui_injectprocess.h"
#include <Windows.h>



class InjectProcess : public QWidget
{
	Q_OBJECT

public:
	InjectProcess(QWidget *parent = 0,std::string dllPath = "");
	~InjectProcess();

	static bool UnInjectDll(const char* dll_full_path, DWORD remote_process_id);
	static bool EnableDebugPriv(LPCTSTR name);
private:
	void enumProcess();
	
	bool InjectDll(const char* dll_full_path, DWORD remote_process_id);
	
private slots:
	void onAttach();

private:
	Ui::InjectProcess ui;

	std::string m_dllPath;
	int			m_remoteProcessId;
};

#endif // INJECTPROCESS_H
